//
//  AiNetworkManager.h
//  ROSE
//
//  Created by 艾阳 on 2018/5/22.
//  Copyright © 2018年 HeNanZhongDunYunAn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
#import "AiBaseResponse.h"

typedef NSString AiDataName;

/**
 错误码
 */
typedef enum : NSUInteger {
    
    AiNetworkManagerError = -10000,
    
} AiNetworkManagerStatusCode;

typedef AiBaseResponse*(^ ResponseFormat123)(AiBaseResponse * response);

@interface AiNetworkManager : AFHTTPSessionManager

+(instancetype)sharedManager;

/**
 本地数据模式
 */
@property (assign,nonatomic) BOOL isLocal;

/**
 预处理返回的数据
 */
@property (copy, nonatomic) ResponseFormat responseFormat;

/**
 https 验证
 */
@property (nonatomic,copy) NSString *cerFilePath;

- (void)POST:(NSString *)urlString parameters:(id)parameters completion:(void (^)(AiBaseResponse *response))completion;

- (void)GET:(NSString *)urlString parameters:(id)parameters completion:(void (^)(AiBaseResponse *response))completion;
@end
